package edu.dayu.mapper;

import edu.dayu.pojo.Tag;
import edu.dayu.pojo.Type;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TagMapper {
    List<Tag> listTag();

    List<Tag> listTagById(int [] ids);

    Tag getTagName(Tag tag);

    Boolean saveTag(Tag tag);

    Boolean updateTag(Tag tag);

    void deleteTag(int id);

    void deleteTagBlog(int id);

    Integer countTagTopThree(int id);

    Integer countTagAll();
}
